package com.freewater.springboot.demo.aop.parameter.normal;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.UUID;

public class Main {
    public static void main(String[] args) {
        final AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
        applicationContext.registerShutdownHook();
        final AccountService accountService = applicationContext.getBean(AccountService.class);
        final Account account = new Account();
        account.setId(UUID.randomUUID().toString().replaceAll("-", ""));
        account.setName("zhangsan");
        accountService.doSomething(account, "test");
    }
}
